package com.cos.shop.dao;

import com.cos.shop.entity.Orders;
import com.cos.shop.vo.OrderDetailVo;
import com.cos.shop.vo.OrderListVo;

import java.sql.SQLException;
import java.util.List;

/**
 * @author: COS
 * @time: 2023/5/12 9:23
 * @description:
 */
public interface OrderDao {
    int addOrder(Orders o) throws SQLException;

    List<OrderListVo> getOrderList(int uid) throws SQLException;

    OrderDetailVo getOrderDetail(String oid) throws SQLException;

    Orders getOrrderByOid(String oid) throws SQLException;

    int changeStatus(int state, String oid) throws SQLException;
}
